import apiRequest from '@/plugins/apiRequest.js';
// 系统配置
const ENV_CONFIG = uni.envConfig;
console.log('ENV_CONFIG')
console.log(ENV_CONFIG)
// 接口的基础路径
// const apiContextPath = ENV_CONFIG.baseUrl+"api/";
// const apiContextPathSsbd = ENV_CONFIG.baseUrlSsbd;

import {
	apiContextPathSsbd
} from "./index.js"
const api = { 
  //获取联营共享里面的商品
  taskObj: {
    getLicaiGoods(page, pageSize, id) {
      return apiRequest.get(apiContextPath + "licai_goods/getLicaiGoods?page_no=" + page + '&page_size=' + pageSize + '&licai_id=' + id);
    },
    //获取微信小店里面的商品
    getWechatStoreGoods(data) {
      return apiRequest.post(apiContextPathSsbd + "api/wechatStore/productList",data,{
        header: {
          'Content-Type': 'application/x-www-form-urlencoded'
        }
      });
    }
  },

}








export default api
